package com.bajiao.entity.order;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 退款单
 * @Author: FanJq
 * @Date:   2024-12-14
 * @Version: V1.0
 */
@Data
@TableName("tb_refund_order")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="tb_refund_order对象", description="退款单")
public class RefundOrder {

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键", required = true, position = 0)
	private String id;
	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号", required = true, position = 10)
	private String orderNo;
	/**退款单号*/
	@Excel(name = "退款单号", width = 15)
    @ApiModelProperty(value = "退款单号", required = true, position = 20)
	private String refundOrderNo;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id", required = true, position = 30)
	private String userId;
	/**店铺id*/
	@Excel(name = "店铺id", width = 15)
    @ApiModelProperty(value = "店铺id", required = true, position = 40)
	private String storeId;
	/**支付金额*/
	@Excel(name = "支付金额", width = 15)
    @ApiModelProperty(value = "支付金额", required = true, position = 60)
	private java.math.BigDecimal payPrice;
	/**0-待审核 1-已退款 9-驳回*/
	@Excel(name = "0-待审核 1-已退款 9-驳回", width = 15)
    @ApiModelProperty(value = "0-待审核 1-已退款 2-退款中 9-驳回", required = true, position = 70)
	private Integer status;
	/**退款金额*/
	@Excel(name = "退款金额", width = 15)
    @ApiModelProperty(value = "退款金额", required = true, position = 80)
	private java.math.BigDecimal refundPrice;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true, position = 90)
	private Date createTime;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间", required = true, position = 100)
	private Date updateTime;
	@ApiModelProperty(value = "退款原因")
	private String reason;

	@ApiModelProperty(value = "1-余额 2-微信")
	private Integer payType;

	@ApiModelProperty(value = "外部交易号")
	private String outTradeNo;
}
